# mysql
SQLALCHEMY_DATABASE_URI = 'sqlite:///app.db'
SQLALCHEMY_TRACK_MODIFICATIONS = True
# debug
DEBUG_LOG = True
# log save 1为文件形式，2为数据库形式，默认数据库
SAVE_LOG = 1
# log日志记录路径
LOG_PATH = './log/'
# upload
UPLOAD_FOLDER = '/uploads/'  # 允许目录
MAX_CONTENT_LENGTH = 16 * 1024 * 1024  # 允许大小16MB
ALLOWED_EXTENSIONS = ['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif']  # 允许文件
# jwt
SECRET_KEY = '7PXsHcHGfa4e3kEs8Rvcv8ymjI0UeauX'
# JWT_LEEWAY = 604800
JWT_EXP = 30  # day

# 0：生产 1：测试
SURVEY_SERVER_ENV = 1
# lot 地址
SAP_HOST = 'http://10.1.9.200/'
# SAP中获取详细物料信息接口
SAP_MATERIAL = '/ERP/SRC/B301'

# 拉去总装10点上线序列的时间间隔 单位：秒
LOT_VEHICLE_TIME = 60 * 6
# 拉去总装10点上线序列的url
LOT_10_VEHICLE_LIST_URL = 'http://10.1.5.90:9410/web/httpServlet/api/aisupport4wc'
# mes生产队列获取url
MES_VIN_DATA_URL = 'https://10.2.2.162/gateway/mes/api/restService/sj/queryHzPlanList'
# mes登录地址
MES_LOGIN_URL = "https://10.2.2.162/gateway/system/api/user/login?operateTerminal=1&browser=Chrome"
# mes拉去数据时间间隔
MES_VEHICLE_TIME = 60
